import request from '/@/utils/request';

export function fetchList(query?: Object) {
	return request({
		url: '/platform/basicDeviceStock/page',
		method: 'get',
		params: query,
	});
}

export function delObjs(ids?: Object) {
	return request({
		url: '/platform/basicDeviceStock/deleteModel',
		method: 'put',
		data: ids,
	});
}
// 获取授权验证码
export function getCaptcha() {
	return request({
		url: '/platform/basicDeviceModel/captcha',
		method: 'get',
	});
}
// 授权-手机号验证单位
export function getAuthorize(query?: Object) {
	return request({
		url: '/platform/basicDeviceModel/authorize',
		method: 'get',
		params: query,
	});
}
